<template>

    <el-table :data="acc" border style="width: 100%">
        <el-table-column prop="username" label="登入账户" width="180" />
        <el-table-column prop="lastLogin.ip" label="上次登入ip" width="180" />
        <el-table-column prop="lastLogin.loginTime" label="上次登入时间" sortable width="180" />
        <el-table-column prop="nowLogin.ip" label="本地登入ip" width="180" />
        <el-table-column prop="nowLogin.loginTime" label="本地登入时间" />
    </el-table>
</template>
  
<script setup>
import { onMounted, ref } from "vue";

// 引入请求
import * as api from "../../../api/users"




let acc = ref([])


onMounted(async () => {
    try {
        let res = await api.getLog(1, 50)
        acc.value = res.data.data

    } catch (e) {
        console.log(res.data.data.msg);
    }

})
</script>
<script>
export default {
    meta:
        {  title: 'glsy', name: '管理首页',routeName:"welcome",icon:"#icon-shouye2" }
}
</script>


<style scoped>
.el-table {
    margin: 20px;
}
</style>
    
    